home *** CD-ROM | disk | FTP | other *** search
/ Glamour Girls 3 / Glamour Girls 3.iso / mac / QTW / INC / COMPMGR.H / COMPMGR.H
C/C++ Source or Header  |  1994-10-28  |  2KB  |  57 lines

  1.  
  2. // ---------------------------------------------------------------------
  3. //
  4. // COMPMGR.H - QuickTime for Windows Component Header File
  5. //
  6. //             Version 1.0
  7. //
  8. //             (c) Copyright 1988-1994 Apple Computer, Inc. All Rights Reserved.
  9. //
  10. // ---------------------------------------------------------------------
  11.  
  12.  
  13. // Prevent multiple inclusion
  14. // --------------------------
  15. #ifndef __COMPMGR_H__
  16. #define __COMPMGR_H__
  17.  
  18. // thngIdentifify CID interface constants
  19. // --------------------------------------
  20. #define CID_VERSION  0x00010000           // version of CID interface
  21. #define THING  QTFOURCC('t','h','n','g')  // ostype to identify components
  22.  
  23.  
  24. // Component Flags
  25. // ---------------
  26. #define cmpWantsRegisterMessage     0x80000000
  27.  
  28.  
  29. // Component Manager/Component interface structure through thngIdentify
  30. // --------------------------------------------------------------------
  31. typedef struct tagCID {                   // Hungarian: cid
  32.   LONG      lVersion;                     // version of thngIdentify interface
  33.   short     sComponentCount;              // number of components within file
  34.   LPCD      lpcdTable;                    // pointer to ComponentDescription records
  35.   FIXUPFUNC lpfnTBFixup;                  // pointer to Toolbox entry point fixup
  36.   FIXUPFUNC lpfnCMFixup;                  // pointer to CM entry point fixup
  37. } CID, FAR *LPCID;
  38.  
  39.  
  40. // Component Selectors
  41. // -------------------
  42. #define kComponentOpenSelect        -1    // mandatory
  43. #define kComponentCloseSelect       -2    // mandatory
  44. #define kComponentCanDoSelect       -3    // mandatory
  45. #define kComponentVersionSelect     -4    // mandatory
  46. #define kComponentRegisterSelect    -5    // optional
  47. #define kComponentTargetSelect      -6    // optional
  48.  
  49.  
  50. // Stack offset for component functions
  51. // ------------------------------------
  52. typedef struct _tagSTKOFF_CMP {
  53.   WORD  words[3];                         // words on stack from glue code
  54. } STKOFF_CMP;
  55.  
  56. #endif // __COMPMGR_H__
  57.